package com.funong.matrix.biz.power.domain;

import cn.hutool.core.lang.tree.Tree;
import com.funong.matrix.biz.base.dao.SysPermissionDao;
import com.funong.matrix.biz.base.entity.SysPermissionEntity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 权限
 *
 * @author lincl
 */
@Service
public class SysPermissionDomainDao {

    @Resource
    private SysPermissionDao sysPermissionDao;

    /**
     * 下拉选择
     *
     * @param systemId
     * @param groupType
     * @return
     */
    public List<Tree<String>> querySelect(Integer systemId, Integer groupType) {
        return sysPermissionDao.querySelect(systemId, groupType);
    }

    /**
     * 查询全部
     *
     * @param systemId
     * @return
     */
    public List<SysPermissionEntity> queryAll(Integer systemId) {
        return sysPermissionDao.queryAll(systemId);
    }
}
